package com.allwees.core.mq.rabbitmq.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.amqp.core.ExchangeTypes;

import java.util.HashMap;
import java.util.Map;

/**
 * Exchange metadata
 *
 * @author yangylsky
 * @since 2019-11-21
 *
 */
@Data
@ToString
@NoArgsConstructor
public class ExchangeInfo {
	private String name;

	private String type = ExchangeTypes.TOPIC;

	private boolean durable = true;

	private boolean autoDelete = false;

	private Map<String, Object> arguments = new HashMap<>();

	public ExchangeInfo(String name) {
		this.name = name;
	}
}
